package decorator.decorator.impl;

import decorator.component.Drink;
import decorator.decorator.DrinkDecorator;

/**
 * 具体装饰器 2: 摩卡
 *
 * @author Liu Yicong
 * @date 2025/9/21
 */
public class MochaDecorator extends DrinkDecorator {
	public MochaDecorator(Drink drink) {
		super(drink);
	}

	@Override
	public String getDescription() {
		return super.getDescription() + ", 加摩卡";
	}

	@Override
	public double getCost() {
		return super.getCost() + 5.0; // 摩卡加 5 元
	}
}
